package com.uyayo.notepad.service;

import com.uyayo.framework.common.exception.CategoryNotFoundException;
import com.uyayo.framework.common.exception.ModifiedRecordNotExistException;
import com.uyayo.framework.core.service.IBaseService;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.notepad.entity.Note;
import com.uyayo.notepad.model.NoteCondition;
import java.util.List;

public interface NoteService extends IBaseService<Note>{

	List<Note> selectNote(NoteCondition noteCondition);

	PageBean<Note> selectNoteByPaging(PageBean<Note> pageBean, NoteCondition noteCondition);

	int saveNote(Note note) throws CategoryNotFoundException;

	int updateNote(Note note) throws CategoryNotFoundException, ModifiedRecordNotExistException;

}
